<?php

return [
    /**
     * 权限分类
     */
    'permission' => [
        'admin' => [
            'namespace' => 'Admin\Controllers\\',
        ],
        'organize' => [
            'namespace' => 'Organize\Controllers\\',
        ]
    ],

    /**
     * 日志记录配置
     */
    'operation_log' => [
        'admin' => [

            /*
             * 操作日志记录模型
             */
            'operation_log_model' => \Platform\Models\Admin\OperationLog::class,

            /*
             * 用户模型
             */
            'user_model' => \Platform\Models\Admin\Administrator::class,

            /*
             * 是否开启操作日志记录
             */
            'enable' => env('ADMIN_LOG',false),

            /*
             * 不需要记录日志的路由
             *
             * 过滤所有的请求方式: admin/auth/logs
             * 过滤单个请求方式: get:admin/auth/logs
             */
            'except' => [
                'get:admin/*',
            ],
        ],
        'organize' => [
            'operation_log_model' => \Platform\Models\Organize\LeaderOperationLog::class,
            'user_model' => \Platform\Models\Organize\Leader::class,
            'enable' => env('ORGANIZE_LOG',false),
            'except' => [
                'get:organize/*',
            ],
        ]
    ],


];